package cn.huiyunche.base.service.interfaces;

import cn.huiyunche.base.service.model.CWaybillTrail;
import cn.huiyunche.base.service.model.CWaybillTrailExample;

import java.util.List;

/**
 * 运单物流信息接口类
 *
 * @author Administrator
 */
public interface CWaybillTrailService {

    /**
     * 查询运单物流信息
     *
     * @param example
     * @return
     */
    List<CWaybillTrail> selectByExample(CWaybillTrailExample example);

    /**
     * 录入物流信息
     *
     * @param cWaybillTrail
     * @return
     * @throws Exception
     */
    Long add(CWaybillTrail cWaybillTrail) throws Exception;

    /**
     * 根据运单ID查询运单物流信息
     *
     * @param waybillId
     * @return
     * @throws Exception
     */
    List<CWaybillTrail> selectByWaybillId(Long waybillId) throws Exception;

}
